package com.hdf.etdemo.view.scrollview;
import com.hdf.easytools.base.EasyToolsActivity;
import com.hdf.easytools.view.scrollview.DampView;
import com.hdf.etdemo.R;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.Toast;

public class ScrollViewActivity extends EasyToolsActivity{

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		/** 设置标题显示 */
		this.TitleVisib(0, 1, 1, 0, 0);
		/** 绑定标题点击事件 */
		this.TitleClick(0, 1, 0, 0, 0);
		/** 设置标题样式ʽ */
		
		this.TitleStyle(null, R.drawable.et_back, "阻尼回弹效果(仿qq空间)", null, 0);
		setContentView(R.layout.activity_scroll_view);
		ImageView img = (ImageView) findViewById(R.id.img);
		DampView view = (DampView) findViewById(R.id.dampview);
		view.setImageView(img);
		
	}

	
	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		switch (v.getId()) {
		case R.id.left_img:
			finish();
			break;

		default:
			break;
		}
	}

	
}
